package furns.service.impl;

import furns.dao.ManagerDAO;
import furns.dao.impl.ManagerDAOImpl;
import furns.entity.Manager;
import furns.service.ManagerService;
@SuppressWarnings("all")


public class ManagerServiceImpl implements ManagerService {
    //创建一个ManagerDAOImpl对象，便于调用其方法
    private ManagerDAO managerDAO = new ManagerDAOImpl();
    @Override
    public Manager login(Manager manager) {
        return managerDAO.queryManagerByUsernameAndPassword(manager.getUsername(), manager.getPassword());
    }
}
